import { combineReducers } from 'redux';
import * as types from '../constants/ActionType';

const weatherInfo = (state = {}, action) => {
	switch (action.type) {
		case types.GetWeather :
			return action.data;
		default:
			return state;
	}
}

const LoginInfo = (state = {}, action) => {
	switch (action.type) {
		case types.Post_Login :
			return action.data;
		default:
			return state;
	}
}

export default combineReducers({
	weatherInfo,
	LoginInfo
});
